﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Manager
{
    public class SAP_Data
    {
        private readonly DataAccess.SAP_Data sapData;
        public SAP_Data()
        {
            sapData = new DataAccess.SAP_Data();
        }
        #region 查询SAP数据

        /// <summary>
        /// 转储订单
        /// </summary>
        public List<Model.SAPDataModel> GetPomigoInfo(string zpointf)
        {
            return sapData.GetPomigoInfo(zpointf);
        }


        /// <summary>
        /// 预留凭证
        /// </summary>
        public List<Model.SAPDataModel> GetMsegExport()
        {
            return sapData.GetMsegExport();
        }


        /// <summary>
        /// 物料凭证
        /// </summary>
        public List<Model.SAPDataModel> GetRkpfExport()
        {
            return sapData.GetRkpfExport();
        }


        /// <summary>
        /// 交货单
        /// </summary>
        public List<Model.SAPDataModel> GetDelivery()
        {
            return sapData.GetDelivery();
        }
        #endregion

        #region 回写SAP导入状态
        /// <summary>
        /// 转储订单
        /// </summary>
        public bool SavePomigoInfo(List<Model.SAPDataModel> lists)
        {
           return sapData.SavePomigoInfo(lists);
        }

        /// <summary>
        /// 预留凭证
        /// </summary>
        public bool SaveMsegExport(List<Model.SAPDataModel> lists)
        {
            return sapData.SaveMsegExport(lists);
        }

        /// <summary>
        /// 物料凭证
        /// </summary>
        public bool SaveRkpfExport(List<Model.SAPDataModel> lists)
        {
            return sapData.SaveRkpfExport(lists);
        }

        /// <summary>
        /// 交货单
        /// </summary>
        public bool SaveDelivery(List<Model.SAPDataModel> lists)
        {
            return sapData.SaveDelivery(lists);
        }
        #endregion

    }
}
